<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'tag-form',
	'htmlOptions'=>array('class'=>'form-horizontal settingform'),
	'enableClientValidation'=>true,
	'clientOptions'=>array(
		'validateOnSubmit'=>true,
	),
)); ?>
<div class="modal-header">
	<button type="button" class="close" data-dismiss="modal">×</button>
	<h3>添加标签</h3>
</div>
<div class="modal-body">
	<fieldset>
		<div class="control-group">
			<?php echo $form->labelEx($tagForm,'category_id',array('class'=>'control-label')); ?>
			<div class="controls">
				<?php echo $form->dropDownList($tagForm,'category_id',Category::getCategoryMap(),array('class'=>'input-xlarge','style'=>'height: 30px;width:200px;')); ?>
				<?php echo $form->error($tagForm,'category_id',array('class'=>'help-inline')); ?>
			</div>
		</div>
		<div class="control-group">
			<?php echo $form->labelEx($tagForm,'tag_group_name_cn',array('class'=>'control-label')); ?>
			<div class="controls">
				<?php echo $form->textField($tagForm,'tag_group_name_cn',array('class'=>'input-xlarge','style'=>'height: 30px;width:200px;')); ?>
				<?php echo $form->error($tagForm,'tag_group_name_cn',array('class'=>'help-inline')); ?>
			</div>
		</div>
		<div class="control-group">
			<?php echo $form->labelEx($tagForm,'tag_group_name_en',array('class'=>'control-label')); ?>
			<div class="controls">
				<?php echo $form->textField($tagForm,'tag_group_name_en',array('class'=>'input-xlarge','style'=>'height: 30px;width:200px;')); ?>
				<?php echo $form->error($tagForm,'tag_group_name_en',array('class'=>'help-inline')); ?>
			</div>
		</div>
		<div class="control-group">
			<?php echo $form->labelEx($tagForm,'tags',array('class'=>'control-label')); ?>
			<div class="controls">
				<?php echo $form->textArea($tagForm,'tags',array('class'=>'input-xlarge','style'=>'height: 163px; width: 299px;')); ?>
				<?php echo $form->error($tagForm,'tags',array('class'=>'help-inline')); ?>
			</div>
		</div>
		<div class="control-group">
			<?php echo $form->labelEx($tagForm,'display_order',array('class'=>'control-label')); ?>
			<div class="controls">
				<?php echo $form->textField($tagForm,'display_order',array('class'=>'input-xlarge','style'=>'height: 30px;width:200px;')); ?>
				<?php echo $form->error($tagForm,'display_order',array('class'=>'help-inline')); ?>
			</div>
		</div>
	</fieldset>
</div>
<div class="modal-footer">
	<a href="#" class="btn" data-dismiss="modal">取消</a> 
	<?php echo CHtml::submitButton('添加',array('class'=>'btn btn-info')); ?>
</div>
<?php $this->endWidget(); ?>
<!-- Tag Form END -->